package com.mate.cloud.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mate.cloud.auth.entity.SysUser;
import com.mate.cloud.auth.mapper.SysUserMapper;
import com.mate.cloud.auth.service.SysUserService;
import com.mate.cloud.mybatis.bases.BasesServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @description:    java类作用描述
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2025/2/3 16:58
 * @updateUser:     MI
 * @updateTime:     2025/2/3 16:58
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Service
public class SysUserServiceImpl extends BasesServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public SysUser selectByUsername(String username) {
        LambdaQueryWrapper<SysUser> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(SysUser::getUsername,username);
        return this.getOne(lambdaQueryWrapper);
    }
}
